package com.meta.act.app.event;

import com.meta.framework.domain.event.DomainEvent;
import lombok.Getter;
import lombok.Setter;

/**
 * 租户创建事件
 *
 * @Title:
 * @Package: com.meta.act.app.event.
 * @Author: M.simple
 * @Remark: The modified content
 * @CreateDate: 2020/11/26 3:34 下午
 * @Version: v2.0
 */
@Setter
@Getter
public class TenantCreateEvent extends DomainEvent {

	public static String event_action = "TenantCreateEvent";

	private Object event_obj;

	public TenantCreateEvent(Object source) {
		super(source);
	}

	public static TenantCreateEvent of(Object event_obj){

		TenantCreateEvent tenantCreateEvent = new TenantCreateEvent(event_action);
		tenantCreateEvent.setEvent_obj(event_obj);

		return tenantCreateEvent;
	}
}
